import request from '@/utils/request'

// 货位--列表
export function queryLocationList(data) {
  return request({
    url: '/wms_v1_pc/base/list-location',
    method: 'POST',
    data
  })
}

// 货位--新增
export function saveLocation(data) {
  return request({
    url: '/wms_v1_pc/base/save-location',
    method: 'POST',
    data
  })
}

// 货位--修改
export function updateLocation(data) {
  return request({
    url: '/wms_v1_pc/base/update-location',
    method: 'POST',
    data
  })
}

// 货位--详情
export function getLocationDetail(params) {
  return request({
    url: '/wms_v1_pc/base/get-location',
    method: 'GET',
    params
  })
}

// 货位--操作记录
export function getLocationLog(params) {
  return request({
    url: '/wms_v1_pc/base/list-location-log',
    method: 'GET',
    params
  })
}

// 货位--导入
export function importLocation(data) {
  return request({
    url: '/wms_v1_pc/base/import-location',
    method: 'POST',
    data
  })
}